<p>
{foreach from=$leagues key=myId item=i name=leaguesT}
	{if $smarty.foreach.leaguesT.first}
		<table>
			<tr>
				<th>Lig</th><th>Sezon</th>
			</tr>
	{/if}
		<tr>
			<td>{$i->league}</td>
			<td>{$i->season}</td>
			<td><a href="?action=Delete&id={$i->id}">Sil</a> |
				<a href="?action=Form&id={$i->id}&league={$i->league|urlencode}&season={$i->season|urlencode}">Degistir</a> |
				<a href="teams.php?leagueId={$i->id}">Takim Ekle</a> |
				<a href="games.php?leagueId={$i->id}">Mac Ekle</a> |
				<a href="teams.php?leagueId={$i->id}">Kullanici Ekle</a>
			</td>
		</tr>
	{if $smarty.foreach.leaguesT.last}
		</table>
	{/if}
{/foreach}
</p>
